<?php
/**
 * Created by PhpStorm.
 * User: 独行侠
 * Date: 2018/3/1
 * Time: 11:43
 */

namespace App\Repositories\Category;


use App\Models\Category\Category;

class CategoryFactory
{

    public $category;

    public function __construct(Category $category)
    {
        $this->category = $category;
    }

    public function getList($cat_id){
        return $this->category->where(['cat_id'=>$cat_id])->get();
    }


}